package org.springblade.modules.platform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author SYG
 * @since 2022-08-26
 */
@TableName("dept_info_table")
@Data
public class DeptInfoTable extends Model<DeptInfoTable> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 部门类型
     */
    @ApiModelProperty(value = "部门类型 1：单位；2 测量量；3：测台")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Integer deptCategory;

    /**
     * 部门名
     */
    @ApiModelProperty(value = "部门名")
    private String deptName;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer sort;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    private Long updateTime;

    /**
     * 添加时间
     */
    @ApiModelProperty(value = "添加时间")
    private Long insertTime;

    @ApiModelProperty(value = "部门编号")
    private Long deptId;

    @ApiModelProperty("父主键")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Integer parentId;

    private String ancestors;

    /**
     * 是否已删除
     */
    @ApiModelProperty(value = "是否已删除")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Integer isDeleted;
}
